<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>任务管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" data-th-href="@{/favicon.ico}">
    <link rel="stylesheet" data-th-href="@{/asserts/css/bootstrap.min.css}">
    <link rel="stylesheet" data-th-href="@{/asserts/css/font-awesome.css}" >
    <link rel="stylesheet" data-th-href="@{/asserts/css/animate.css}" >
    <link rel="stylesheet" data-th-href="@{/asserts/css/style.css}" >
    <link rel="stylesheet" data-th-href="@{/asserts/css/plugins/ztree/zTreeStyle.css}">
    <link rel="stylesheet" data-th-href="@{/asserts/css/plugins/bootstrap-table/bootstrap-table.min.css}">
    <link rel="stylesheet" data-th-href="@{/asserts/css/plugins/iCheck/custom.css}">
    <!-- Latest compiled and minified CSS -->
    <style>
        .form-control:focus,
        .single-line:focus {
            border-color: #0e9aef !important;
        }
        .checkbox-inline {
            line-height: 5px;
        }
    </style>
</head>
<body>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>任务管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="row">
                                    <div class="col-lg-10 col-sm-9">
                                        <div class="row">
                                            <div class="col-lg-4 col-sm-12">
                                                <div class="input-group">
                                                    <div class="input-group-btn">
                                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button" aria-expanded="false">Bean名称
                                                        </button>
                                                    </div>
                                                    <input type="text" class="form-control" id="name" placeholder="">
                                                </div>
                                            </div>
                                            <div class="col-lg-4 col-sm-12">
                                                <div class="input-group">
                                                    <div class="input-group-btn">
                                                        <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button" aria-expanded="false">方法名称
                                                        </button>
                                                    </div>
                                                    <input type="text" class="form-control" id="methdodName" placeholder="">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-sm-3">
                                        <div class="row">
                                            <div class="col-lg-12 col-sm-12">
                                                <button type="button" class="btn btn-primary " onclick="Job.search()" id="">
                                                    <i class="fa fa-search"></i>&nbsp;搜索
                                                </button>
                                                <button type="button" class="btn btn-primary button-margin" onclick="Job.resetSearch()" id="">
                                                    <i class="fa fa-trash"></i>&nbsp;重置
                                                </button>
                                                <div class="dropdown actions__item">
                                                    <i data-toggle="dropdown" class="zmdi zmdi-download">
                                                    </i>
                                                    <ul class="dropdown-menu dropdown-menu-right">
                                                        <a href="javascript:void(0)" class="dropdown-item" data-table-action="excel" onclick="Job.exportJobExcel()">
                                                            Excel (.xlsx)
                                                        </a>
                                                        <a href="javascript:void(0)" class="dropdown-item" data-table-action="csv" onclick="Job.exportJobCsv()">
                                                            CSV (.csv)
                                                        </a>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="hidden-xs" id="managerTableToolbar" role="group">
                                    <button type="button" class="btn btn-primary"
                                            shiro:hasPermission="job:add"  onclick="Job.addJob()">
                                        <i class="fa fa-plus"></i>&nbsp;新增任务
                                    </button>
                                    <button type="button" class="btn btn-primary button-margin"
                                            shiro:lackPermission="job:update" onclick="Job.updateJob()">
                                        <i class="fa fa-edit"></i>&nbsp;修改任务
                                    </button>
                                    <button type="button" class="btn btn-primary button-margin"
                                            shiro:lackPermission="job:delete" onclick="Job.delJob()">
                                        <i class="fa fa-remove"></i>&nbsp;删除任务
                                    </button>
                                    <button type="button" class="btn btn-primary button-margin"
                                            shiro:lackPermission="job:run" onclick="Job.runJob()">
                                        <i class="fa fa-play" aria-hidden="true"></i>&nbsp;立即执行任务
                                    </button>
                                    <button type="button" class="btn btn-primary button-margin"
                                            shiro:lackPermission="job:pause" onclick="Job.pauseJob()">
                                        <i class="fa fa-pause" aria-hidden="true"></i></i>&nbsp;暂停任务
                                    </button>
                                    <button type="button" class="btn btn-primary button-margin"
                                            shiro:lackPermission="job:resume" onclick="Job.resumeJob()">
                                        <i class="fa fa-refresh" aria-hidden="true"></i> &nbsp;恢复任务
                                    </button>
                                </div>
                                <table id="jobTable" style="width: 100%"></table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script th:inline="javascript">
    var ctxPath = [[@{/}]];
</script>

<!-- 全局js -->
<script data-th-src="@{/webjars/jquery/3.3.1/jquery.min.js}"></script>

<!--自定义js-->
<script data-th-src="@{/asserts/js/job/job/job.js}"></script>
<script data-th-src="@{/asserts/js/common/Feng.js}"></script>
<script data-th-src="@{/asserts/js/common/bootstrap-table-object.js}"></script>
<script data-th-src="@{/asserts/js/common/ztree-object.js}"></script>
<script data-th-src="@{/asserts/js/common/ajax-object.js}"></script>

<!--第三方插件js-->
<script data-th-src="@{/asserts/js/plugins/bootstrap-table/bootstrap-table.min.js}"></script>
<script data-th-src="@{/asserts/js/plugins/validate/bootstrapValidator.min.js}"></script>
<script data-th-src="@{/asserts/js/plugins/layer/layer.min.js}"></script>
<script data-th-src="@{/asserts/js/plugins/layer/laydate/laydate.js}"></script>
<script data-th-src="@{/asserts/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}"></script>
<script data-th-src="@{/asserts/js/plugins/ztree/jquery.ztree.all.min.js}"></script>

</html>
